package com.gitee.mars.marsquickframe.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.mars.marsquickframe.entity.AddressBook;
import com.gitee.mars.marsquickframe.request.AddressBookRequest;
import com.gitee.mars.marsquickframe.response.base.PageInfo;

/**
 * AddressBook 接口
 *
 * @Author wq
 * @Date 2021-05-03
 **/
public interface IAddressBookService extends IService<AddressBook> {


    void add(AddressBookRequest request);

    /**
     * 列表
     *
     * @param request request
     * @return PageInfo<AddressBook>
     */
    PageInfo<AddressBook> list(AddressBookRequest request);


    /**
     * 删除
     *
     * @param id id
     */
    void delete(Integer id);

    /**
     * 更新
     *
     * @param request requset
     */
    void update(AddressBookRequest request);

    /**
     * 详情
     *
     * @param id id
     * @return AddressBook
     */
    AddressBook detail(Integer id);
}
